﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>获取当前文档的URL</title>
</head>
<body>
    <script language="javascript">
        document.write("<b>当前页面的URL:&nbsp;</b>" + document.URL);
    </script>
</body>
</html>